HAL COMP state and error functions migration

This section provides information about the HAL COMP state and error functions migration.

HAL COMP Get error

HAL1

HAL2

HAL_COMP_GetError(const COMP_HandleTypeDef *hcomp);

Removed , COMP has no errors to report

Related concepts: Revised and optimized HAL API status returns


HAL COMP Get state

HAL1

HAL2

HAL_COMP_GetState(const COMP_HandleTypeDef *hcomp);
HAL_COMP_GetState(const hal_comp_handle_t *hcomp);

Summary of Key Changes

  1. The only update between HAL1 and HAL2 is the renaming of the handle passed in the parameters. .

related concepts: Revised and optimized HAL state machine